package com.bong.ring.activity.common;

import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;

import com.bong.ring.R;
import com.bong.ring.activity.ActionBarReturnActivity;

public class SearchActivity extends ActionBarReturnActivity {

    private TextView textView1, textView2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_search);
        getSupportActionBar().setTitle("寻找手环");
        findViewById(R.id.imageView3).clearAnimation();
        textView1 = findViewById(R.id.textView1);
        textView2 = findViewById(R.id.textView2);
    }

    public void beginSearchClick(View view) {
        textView1.setText("正在更新手环位置...");
        textView2.setText("手环信号强度:-50dBm\n手环就在附近，请耐心寻找");
        Animation animation = AnimationUtils.loadAnimation(this, R.anim.anim_arrow);
        findViewById(R.id.imageView3).startAnimation(animation);
    }
}
